#ifndef CONFIG_H
#define CONFIG_H

#include <QString>
#include <QCryptographicHash>
const QString DB_DRIVE = "QMYSQL";  //数据库drive
const QString DB_HOST_NAME = "127.0.0.1";
const int DB_PORT = 3306;
const QString DB_USER_NAME = "root";
const QString DB_PASSWORD = "123456";
const QString DB_DATABASE_NAME = "InventoryMaster";


////用户信息
struct UserInfo
{
    int id;
    QString name;
    QString password;
    QString email;
    int auth;
};
struct UserLogin
{
    int id;
    QString name;
    int auth;
};

extern UserLogin LAS;

struct UserChange
{
    int id;
    QString name;
    QString email;
    int auth;
};




QString strToMd5(const QString &str);


#endif // CONFIG_H
